<%@ page isELIgnored="false"%>
<%@ page language="java" contentType="text/html; charset=utf-8"  
    pageEncoding="UTF-8"%>  

<%@ taglib prefix="s" uri="/struts-tags"%>
<html><head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>KCMS</title>
<jsp:include page="../../iframecommon.jsp"></jsp:include>


<script src="js/demo-skin-changer.js"></script>  
<script src="js/jquery.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/jquery.nanoscroller.min.js"></script>
<script src="js/demo.js"></script>  
 
<script src="js/jquery.dataTables.js"></script>
<script src="js/dataTables.fixedHeader.js"></script>
<script src="js/dataTables.tableTools.js"></script>
<script src="js/jquery.dataTables.bootstrap.js"></script>
 
<script src="js/scripts.js"></script>
<script src="js/pace.min.js"></script>
 


<script>
	$(document).ready(function() {
		var table = $('#table-example').dataTable({
			'info': false,
			'sDom': 'lTfr<"clearfix">tip',
			'oTableTools': {
	            'aButtons': [
	                {
	                    'sExtends':    'collection',
	                    'sButtonText': '<i ></i>&nbsp;&nbsp;&nbsp;<i ></i>',
	                    'aButtons':    [ 'csv', 'xls', 'pdf', 'copy', 'print' ]
	                }
	            ]
	        }
		});
		
	    //var tt = new $.fn.dataTable.TableTools( table );
		//$( tt.fnContainer() ).insertBefore('div.dataTables_wrapper');
		
		var tableFixed = $('#table-example-fixed').dataTable({
			'info': false,
			'pageLength': 50
		});
		
		new $.fn.dataTable.FixedHeader( tableFixed );
	});
	</script>


</head>
<body>

<header class="main-box-header clearfix">
<h1>通知管理</h1>
</header>

<div class="alert alert-info">
修改或删除通知后，学生端将会有相应变化，请谨慎操作
</div>

<div class="main-box-body clearfix">
<div class="table-responsive">
<div class="dataTables_wrapper no-footer" id="table-example_wrapper"><div class="DTTT_container"><a id="ToolTables_table-example_0" class="DTTT_button DTTT_button_collection"></a></div><div class="clearfix"></div>
<table role="grid" id="table-example" class="table table-hover dataTable no-footer">
<thead>
<tr role="row">
<th aria-sort="ascending" aria-label="Name: activate to sort column ascending" style="width: 100px;" colspan="1" rowspan="1" aria-controls="table-example" tabindex="0" class="sorting_asc">序号</th>
<th aria-label="Position: activate to sort column ascending" style="width: 180px;" colspan="1" rowspan="1" aria-controls="table-example" tabindex="0" class="sorting">课程和班级</th>
<th aria-label="Office: activate to sort column ascending" style="width: 300px;" colspan="1" rowspan="1" aria-controls="table-example" tabindex="0" class="sorting">消息内容</th>
<th aria-label="Age: activate to sort column ascending" style="width: 150px;" colspan="1" rowspan="1" aria-controls="table-example" tabindex="0" class="sorting">发布时间</th>
<th aria-label="Start date: activate to sort column ascending" style="width: 80px;" colspan="1" rowspan="1" aria-controls="table-example" tabindex="0" class="sorting">修改</th>
<th aria-label="Salary: activate to sort column ascending" style="width: 80px;" colspan="1" rowspan="1" aria-controls="table-example" tabindex="0" class="sorting">删除</th>
</tr>
</thead>
<tbody>

<s:iterator value="viewMessages1" id="vms" status="st">
<tr>
<td>${st.index+1}</td>
<td>${vms.id.cname}${vms.id.receiverCsn}</td>
<td>${vms.id.description}</td>
<td>${vms.id.time}</td>
<td><a  href="message_showMessageDetails?messageid=${vms.id.messageid}&sid=${vms.id.sid}">修改通知</a></td>
<td><a  href="message_deleteMessage?messageid=${vms.id.messageid}"  onclick="return confirm('此操作会删除该通知，确定删除?')">删除通知</a></td>
</tr>
</s:iterator>
</table>
</div>
</div>
</div>

<%-- 
<s:iterator value="pageBean">
        <tr>
         <td colspan="6" align="center" bgcolor="#5BA8DE">
         共<s:property value="allRow"/>条记录    
         共<s:property value="totalPage"/>页    
         当前第<s:property value="currentPage"/>页<br>
    
         <s:if test="%{currentPage == 1}">
           第一页  上一页
         </s:if>
         <!-- currentPage为当前页 -->
         <s:else>
           <a href="message_hisMessage?pageSize=${pageSize}&page=1">第一页</a>
           <a href="message_hisMessage?pageSize=${pageSize}&page=<s:property value="%{currentPage-1}"/>">上一页</a>
         </s:else>
    
         <s:if test="%{currentPage != totalPage}">
         <a href="message_hisMessage?pageSize=${pageSize}&page=<s:property value="%{currentPage+1}"/>">下一页</a>
         <a href="message_hisMessage?pageSize=${pageSize}&page=<s:property value="totalPage"/>">最后一页</a>
            </s:if>
    
         <s:else>
         下一页  最后一页
         </s:else>
      
         </td>
        </tr>
</s:iterator> --%>
</body>
</html>